﻿using NHibernate;
using NHibernate.Linq;
using SimpleTasks.Commands.SimpleTaskList;
using SimpleTasks.Domain.Model;
using SimpleTasks.Persistence.Hibernate;
using SimpleTasks.Presenters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SimpleTasks
{
   static class Program
   {
      /// <summary>
      /// The main entry point for the application.
      /// </summary>
      [STAThread]
      static void Main()
      {
         //HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();

         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);

         using (var app = new Shape.Mvp.Application())
         {
            app.Controller.Execute<ApplicationStartCommand>();
         }
      }
   }
}
